package game;

import game.combat.CombatActor;
import java.util.Collection;

public abstract class StateSwitcher {

    public static void init() {
	loadRoamState();
    }

    public static void loadRoamState() {
	DataStore.combatAppState.setEnabled(false);
	DataStore.roamAppState.setEnabled(true);
    }

    public static void loadCombatState(Collection<CombatActor> combatActors) {
	DataStore.roamAppState.setEnabled(false);
        DataStore.combatAppState.setCombatActors(combatActors);
	DataStore.combatAppState.setEnabled(true);
    }
    
    public static GameState getGameState() {
        if(DataStore.roamAppState.isEnabled())
            return GameState.ROAM;
        else if(DataStore.combatAppState.isEnabled())
            return GameState.COMBAT;
        else
            return null;
    }
}
